package com.ruicar.afs.cloud.apply.pre.loan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruicar.afs.cloud.apply.common.entity.ApplyOrderInfo;
import com.ruicar.afs.cloud.apply.contract.vo.ApplyStatisticsVo;
import com.ruicar.afs.cloud.apply.contract.vo.ApplyUseCarVinVo;
import com.ruicar.afs.cloud.bizcommon.business.condition.ApplyTotalCondition;
import com.ruicar.afs.cloud.common.core.security.vo.RoleVo;
import com.ruicar.afs.cloud.image.entity.ComAttachmentFile;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author panhj
 */
public interface ApplyOrderInfoMapper extends BaseMapper<ApplyOrderInfo> {
    /**
     * 获取进件申请数量
     * */
    List<ApplyOrderInfo> getApplyCount(@Param("query") ApplyTotalCondition applyTotalCondition);
    List<ApplyStatisticsVo> getApplyCountPc(@Param("query") ApplyTotalCondition applyTotalCondition);
    /**
     * 获取进件申请数量
     * */
    List<ApplyOrderInfo> getApplyList(@Param("channelId") String channelId,@Param("status") String status,@Param("createBy") String createBy,@Param("deptIds") List<String> deptIds,@Param("roleList") List<RoleVo> roleList);
    /**
     * 根据vin码获取历史订单
     * */
    List<ApplyUseCarVinVo> getOrderInfoByVin(@Param("vin") String vin);

    /**
     * 获取预审批身份证正反面
     * @param busiNo
     * @param uniqueCode
     * @return
     */
    List<ComAttachmentFile> getIdCardImage(@Param("busiNo") String busiNo,@Param("uniqueCode") String uniqueCode,@Param("busiNode") String busiNode);

}
